package com.twu.biblioteca;


/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 7/5/13
 * Time: 12:54 AM
 * To change this template use File | Settings | File Templates.
 */
public class BookDetails
{
    String bookName;
    String author;
    String genre;
    int number_of_copies;
    BookDetails(String bookName,String author,String genre,int number_of_copies)
    {
        this.bookName=bookName;
        this.author=author;
        this.genre=genre;
        this.number_of_copies=number_of_copies;
    }

    public String getBookName()
    {
                 return bookName;
    }

    public String getAuthor(){
        return author;
    }

    public String getGenre(){
        return genre;
    }

    public int getNumber_of_copies(){
        return number_of_copies;
    }

    public int updateNumber_of_copies(){
        number_of_copies--;
        return number_of_copies;
    }


}

